END
END
 
Parameters: NONE
Returns: NONE
 

     END will terminate execution and end the program. If you're running the program from the IDE then this mean it'll stop immediately and return to the editor. If the program is running and stand alone executable, then it'll exit back to windows.




FACTS:


      * END is automatically clean up all the programs resources for you. You don't have to manually delete everything yourself. Although that can be good habit to get into.




Mini Tutorial:


      This example program will keep running until the user pressed the SPACE BAR. At this point it calls the END command to quit execution of the program.


  
  
; Tell PlayBASIC to limit this program to a
; top speed of 100 frames (syncs) per second.
  SetFPS 100
  
; Start of Main Program loop
  Do
     
   ; Clear the Screen to black
     Cls RGB(0,0,0)
     
   ; DRaw a circle
     Circle Xpos#,Ypos#,50,true
     Xpos#=Mod(Xpos#+Rnd#(5),800)
     Ypos#=Mod(Ypos#+Rnd#(5),600)
     
   ; Check if the space bar was pressed ?
     If SpaceKey()=true
        
      ; If it was, TELL PB TO END THis program
        End
        
     EndIf
     
   ; Show the Screen to the user
     Sync
   ; Loop back to the do statement to keep program running
  Loop
  
  



 
Related Info: :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com